/*
 * vs1011_defs.h
 *
 * Created: 04.01.2012 21:57:39
 *  Author: Luke
 */ 

/*
VS1011 info:

-SPI operation:
	CS is active low
	Data is sampled on the leading/rising clock edge
	Bit & Byte Order is MSB first


*/
#ifndef VS1011_DEFS_H_
#define VS1011_DEFS_H_

// MCU I/O PORT Configuration:
#define VS_XRESET_DDR DDRD
#define VS_XRESET_PORT PORTD
#define VS_XRESET_PIN PORTD6

#define VS_XCS_DDR DDRB
#define VS_XCS_PORT PORTB
#define VS_XCS_PIN PORTB1

#define VS_XDCS_DDR DDRB
#define VS_XDCS_PORT PORTB
#define VS_XDCS_PIN PORTB2


#define VS_DREQ_DDR DDRD
#define VS_DREQ_PORT PORTD
#define VS_DREQ_INP PIND
#define VS_DREQ_PIN PORTD2

#define VS_DREQ_INT PCINT0_vect 

#endif /* VS1011_DEFS_H_ */